#define _CRT_SECURE_NO_WARNINGS 1
#include "BinaryTree.h"



int main()
{
	BTNode* n1 = BuyBTNode(1);
	BTNode* n2 = BuyBTNode(2);
	BTNode* n3 = BuyBTNode(3);
	BTNode* n4 = BuyBTNode(4);
	BTNode* n5 = BuyBTNode(5);
	BTNode* n6 = BuyBTNode(6);
	BTNode* n7 = BuyBTNode(7);

	n1->left = n2;
	n1->right = n4;
	n2->left = n3;
	n4->left = n5;
	n4->right = n6;
	n3->right = n7;

	BinaryTreePrevOrder(n1);
	printf("\n");

	BinaryTreeInOrder(n1);
	printf("\n");

	BinaryTreePostOrder(n1);
	printf("\n");

	printf("BinaryLevelTreeSize: %d\n", BinaryTreeLevelSize(n1));

	printf("BinaryTreeSize: %d\n", BinaryTreeSize(n1));
	printf("BinaryTreeHeight: %d\n", BinaryTreeHeight(n1));
	printf("BinaryTreeLevelKSize: %d\n", BinaryTreeLevelKSize(n1,4));



	return 0;
}
